<!doctype html>
<html>
<head>
    <title>查看诊断</title>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile-1.4.0.css" />
    <link rel="stylesheet" type="text/css" href="../../css/zpdydhl_mobile.css">
    <link rel="stylesheet" type="text/css" href="../../css/mobiscroll.custom-2.6.2.min.css">
    <script type="text/javascript" src="../../js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="../../js/jquery.mobile-1.4.0.min.js"></script>
    <script type="text/javascript" src="../../js/zpdydhl_mobile.js"></script>
    <script type="text/javascript" src="../../js/mobiscroll.custom-2.6.2.min.js"></script>
</head>
<body>
<div data-role="page" data-theme="c">
    <div class="ui-grid-solo bingli_content_shoushu" style="margin-top:0px;">
      <div class="ui-block-a" id="zhenduan_zhongyi_type">
      </div>
    </div>
    
    <div id="zhongyi_zhuyao_zhenduan_list">
    </div>
    
    <div class="ui-grid-solo bingli_content_shoushu">
      <div class="ui-block-a" id="zhenduan_xiyi_type">
      </div>
    </div>

    <div id="xiyi_zhuyao_zhenduan_list">
    </div>
    
   <!--  <div data-role="footer" data-position="fixed" class="footer_list"  data-tap-toggle="false" data-theme="b">
          <ul>
           <li><a href="./showPatientZhuyuanDetail.html" data-ajax="false"><img src="../../css/images/bl.png"></a></li>
			<li><a href="./showPatientZhenduan.html" data-ajax="false"><img src="../../css/images/jy_hover.png"></a></li>
			<li><a  href="./showYizhuChangqi.html" data-ajax="false"><img src="../../css/images/yz.png"></a></li>
			<li><a href="./showTizhengList.html" data-ajax="false"><img src="../../css/images/tz.png"></a></li>
			<li><a href="../JianyanJiancha/showJianchaList.html" data-ajax="false"><img src="../../css/images/jc.png"></a></li>>
          </ul>
    </div> -->
</div>
<script type="text/javascript">
   function refreshData(){
        $.ajax({
            type: "get",
            async: true,
            url:server_url+"Mobile/Zhenduan/showPatienZhenduanJson/zhuyuan_id/"+patient_info_global.zhuyuan_id+yiyuan_id,
            data:{},
            dataType: "jsonp",
            jsonp: "callbackShowPatienZhenduanJson",
            jsonpCallback:"feedBackStateShowPatienZhenduanJson",
            error:function(mes)
            {
                alert("请求失败，请稍后重试");
            },
            success: function(result) {
                if(result.ret == "success"){
                  //诊断中医类型
                  $("#zhenduan_zhongyi_type").html(result.data.zhenduan_zhongyi_type);
                  $("#zhenduan_xiyi_type").html(result.data.zhenduan_xiyi_type);
                 
                  str = "";
                  for (var i = 0; i < result.data.zhongyi_zhuyao_zhenduan.length; i++) {
                    str+='<div class="ui-content" style="padding:0px;" role="main"><div class="ui-grid-a bingli_content_shoushu_all_zhenduan"><div class="ui-block-a" style=" width:25%;text-align:left; text-indent:10px;">'+result.data.zhongyi_zhuyao_zhenduan[i].type+'</div><div class="ui-block-b" style="text-align:left; text-indent:20px; width:75%;">'+result.data.zhongyi_zhuyao_zhenduan[i].name+'</div></div></div>';
                  }

                  for (var i = 0; i < result.data.zhongyi_ciyao_zhenduan.length; i++) {
                    str+='<div class="ui-content" style="padding:0px;" role="main"><div class="ui-grid-a bingli_content_shoushu_all_zhenduan"><div class="ui-block-a" style=" width:25%;text-align:left; text-indent:10px;">'+result.data.zhongyi_ciyao_zhenduan[i].type+'</div><div class="ui-block-b" style="text-align:left; text-indent:20px; width:75%;">'+result.data.zhongyi_ciyao_zhenduan[i].name+'</div></div></div>';
                  }
                  $('#zhongyi_zhuyao_zhenduan_list').html(str);
                  str="";
                  for (var i = 0; i < result.data.xiyi_zhuyao_zhenduan.length; i++) {
                    str+='<div class="ui-content" style="padding:0px;" role="main"><div class="ui-grid-a bingli_content_shoushu_all_zhenduan"><div class="ui-block-a" style=" width:25%;text-align:left; text-indent:10px;">'+result.data.xiyi_zhuyao_zhenduan[i].type+'</div><div class="ui-block-b" style="text-align:left; text-indent:20px; width:75%;">'+result.data.xiyi_zhuyao_zhenduan[i].name+'</div></div></div>';
                  }

                  for (var i = 0; i < result.data.xiyi_ciyao_zhenduan.length; i++) {
                    str+='<div class="ui-content" style="padding:0px;" role="main"><div class="ui-grid-a bingli_content_shoushu_all_zhenduan"><div class="ui-block-a" style=" width:25%;text-align:left; text-indent:10px;">'+result.data.xiyi_ciyao_zhenduan[i].type+'</div><div class="ui-block-b" style="text-align:left; text-indent:20px; width:75%;">'+result.data.xiyi_ciyao_zhenduan[i].name+'</div></div></div>';
                  }
                  $('#xiyi_zhuyao_zhenduan_list').html(str);
                }
            }
        });     
    }
</script>
</body>
</html>
